﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class role
    {
        private string rolename;  //角色名称
        private string nickname;  //昵称
        private int atk;      //攻击力
        private int defense;  //防御力
        private int speed;    //速度
        private string skill;

        public role(string rolename,string nickname, int atk,int defense,int speed,string skill) {
            this.rolename = rolename;
            this.nickname = nickname;
            this.atk = atk;
            this.defense = defense;
            this.speed = speed;
            this.skill = skill;
        }

        public void  Skill() {
            Console.WriteLine("英雄名称：{0}",this.rolename);
            Console.WriteLine("游戏昵称：{0}", this.nickname);
            Console.WriteLine("攻击力：{0}", this.atk);
            Console.WriteLine("防御力：{0}", this.defense);
            Console.WriteLine("速度：{0}", this.speed);
            Console.WriteLine("角色技能：{0}",this.skill);
        }
    }
}
